

import { post, remove } from "@/utils/request";

/**
 * 上传附件
 * @param data
 * @returns
 */
export const uploadFile = (data: FormData) => post<string>(`/file/upload`, data);
/**
 * 删除附件
 * @param
 * @returns
 */
export const deleteFile = (data: DeleteFile) => remove(`/file/delete`, data);
export const deleteFileSafe = (data: DeleteFile) => remove(`/file/deleteSafe`, data);

